package com.ourteam.product.requirement.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:28
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class ProductVersionRelateDAOQueryBean extends BaseQueryBean {
    public ProductVersionRelateDAOQueryBean() {
        super();
    }

    public ProductVersionRelateDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public ProductVersionRelateDAOQueryBean(BaseQueryBean aQueryBean,
        Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionRelateDAO.Id, aAlias);
        } else {
            addSelectProperty(IProductVersionRelateDAO.Id, "id");
        }
    }

    public void addProductDefineIdSelectProperty() {
        addProductDefineIdSelectProperty("productDefineId");
    }

    public void addProductDefineIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionRelateDAO.ProductDefineId, aAlias);
        } else {
            addSelectProperty(IProductVersionRelateDAO.ProductDefineId,
                "productDefineId");
        }
    }

    public void addProductVersionIdSelectProperty() {
        addProductVersionIdSelectProperty("productVersionId");
    }

    public void addProductVersionIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionRelateDAO.ProductVersionId, aAlias);
        } else {
            addSelectProperty(IProductVersionRelateDAO.ProductVersionId,
                "productVersionId");
        }
    }

    public void addProductElementIdSelectProperty() {
        addProductElementIdSelectProperty("productElementId");
    }

    public void addProductElementIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionRelateDAO.ProductElementId, aAlias);
        } else {
            addSelectProperty(IProductVersionRelateDAO.ProductElementId,
                "productElementId");
        }
    }

    public void addProductElementTypeSelectProperty() {
        addProductElementTypeSelectProperty("productElementType");
    }

    public void addProductElementTypeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionRelateDAO.ProductElementType,
                aAlias);
        } else {
            addSelectProperty(IProductVersionRelateDAO.ProductElementType,
                "productElementType");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionRelateDAO.Status, aAlias);
        } else {
            addSelectProperty(IProductVersionRelateDAO.Status, "status");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionRelateDAO.Remarks, aAlias);
        } else {
            addSelectProperty(IProductVersionRelateDAO.Remarks, "remarks");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addProductDefineIdSelectProperty();

        addProductVersionIdSelectProperty();

        addProductElementIdSelectProperty();

        addProductElementTypeSelectProperty();

        addStatusSelectProperty();

        addRemarksSelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<ProductVersionRelateDAOQueryBean> {
        protected Criteria(ProductVersionRelateDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(IProductVersionRelateDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(IProductVersionRelateDAO.Id + " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(IProductVersionRelateDAO.Id + " is not null AND " +
                IProductVersionRelateDAO.Id + " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + IProductVersionRelateDAO.Id + " is null OR " +
                IProductVersionRelateDAO.Id + " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.Id + " = ", value, "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Id + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.Id + " is null OR " +
                IProductVersionRelateDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Id + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.Id + " >", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Id + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.Id + " >=", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Id + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.Id + " <", value, "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Id + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.Id + " <=", value, "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Id + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.Id + " not in", values,
                    "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.Id + " not in", values,
                    "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.Id + " in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.Id + " not in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Id + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Id + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(IProductVersionRelateDAO.Id + " between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionRelateDAO.Id + " between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(IProductVersionRelateDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionRelateDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andProductDefineIdIsNull() {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " is null");

            return this;
        }

        public Criteria andProductDefineIdIsNotNull() {
            addCriterion(IProductVersionRelateDAO.ProductDefineId +
                " is not null");

            return this;
        }

        public Criteria andProductDefineIdIsNotEmpty() {
            addCriterion(IProductVersionRelateDAO.ProductDefineId +
                " is not null AND " + IProductVersionRelateDAO.ProductDefineId +
                " <> ''");

            return this;
        }

        public Criteria andProductDefineIdIsEmpty() {
            addCriterion("(" + IProductVersionRelateDAO.ProductDefineId +
                " is null OR " + IProductVersionRelateDAO.ProductDefineId +
                " = '')");

            return this;
        }

        public Criteria andProductDefineIdEqualTo(long value) {
            return andProductDefineIdEqualTo(Long.valueOf(value));
        }

        public Criteria andProductDefineIdEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " = ",
                value, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductDefineId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductDefineIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductDefineIdNotEqualTo(long value) {
            return andProductDefineIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andProductDefineIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " <>",
                value, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdNotEqualToOrIsNull(long value) {
            return andProductDefineIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andProductDefineIdNotEqualToOrIsNull(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId +
                " is null OR " + IProductVersionRelateDAO.ProductDefineId +
                " <>", value, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductDefineId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductDefineIdNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductDefineIdGreaterThan(long value) {
            return andProductDefineIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andProductDefineIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " >",
                value, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductDefineId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductDefineIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductDefineIdGreaterThanOrEqualTo(long value) {
            return andProductDefineIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andProductDefineIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " >=",
                value, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductDefineId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductDefineIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductDefineIdLessThan(long value) {
            return andProductDefineIdLessThan(Long.valueOf(value));
        }

        public Criteria andProductDefineIdLessThan(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " <",
                value, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductDefineId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductDefineIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductDefineIdLessThanOrEqualTo(long value) {
            return andProductDefineIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andProductDefineIdLessThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " <=",
                value, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductDefineId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductDefineIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductDefineIdIn(long[] values) {
            if (values.length == 1) {
                return andProductDefineIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductDefineId + " in",
                    values, "productDefineId");

                return this;
            }
        }

        public Criteria andProductDefineIdNotIn(long[] values) {
            if (values.length == 1) {
                return andProductDefineIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductDefineId +
                    " not in", values, "productDefineId");

                return this;
            }
        }

        public Criteria andProductDefineIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andProductDefineIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.ProductDefineId + " in",
                    values, "productDefineId");

                return this;
            }
        }

        public Criteria andProductDefineIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andProductDefineIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.ProductDefineId +
                    " not in", values, "productDefineId");

                return this;
            }
        }

        public Criteria andProductDefineIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andProductDefineIdEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductDefineId + " in",
                    Arrays.asList(values), "productDefineId");

                return this;
            }
        }

        public Criteria andProductDefineIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andProductDefineIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductDefineId +
                    " not in", Arrays.asList(values), "productDefineId");

                return this;
            }
        }

        public Criteria andProductDefineIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductDefineIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductDefineIdBetween(long value1, long value2) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " between",
                value1, value2, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId + " between",
                value1, value2, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdNotBetween(long value1, long value2) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId +
                " not between", value1, value2, "productDefineId");

            return this;
        }

        public Criteria andProductDefineIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionRelateDAO.ProductDefineId +
                " not between", value1, value2, "productDefineId");

            return this;
        }

        public Criteria andProductVersionIdIsNull() {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " is null");

            return this;
        }

        public Criteria andProductVersionIdIsNotNull() {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " is not null");

            return this;
        }

        public Criteria andProductVersionIdIsNotEmpty() {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " is not null AND " +
                IProductVersionRelateDAO.ProductVersionId + " <> ''");

            return this;
        }

        public Criteria andProductVersionIdIsEmpty() {
            addCriterion("(" + IProductVersionRelateDAO.ProductVersionId +
                " is null OR " + IProductVersionRelateDAO.ProductVersionId +
                " = '')");

            return this;
        }

        public Criteria andProductVersionIdEqualTo(long value) {
            return andProductVersionIdEqualTo(Long.valueOf(value));
        }

        public Criteria andProductVersionIdEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " = ",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductVersionId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdNotEqualTo(long value) {
            return andProductVersionIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andProductVersionIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " <>",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdNotEqualToOrIsNull(long value) {
            return andProductVersionIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andProductVersionIdNotEqualToOrIsNull(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " is null OR " + IProductVersionRelateDAO.ProductVersionId +
                " <>", value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductVersionId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdGreaterThan(long value) {
            return andProductVersionIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andProductVersionIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " >",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductVersionId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdGreaterThanOrEqualTo(long value) {
            return andProductVersionIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andProductVersionIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " >=",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductVersionId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdLessThan(long value) {
            return andProductVersionIdLessThan(Long.valueOf(value));
        }

        public Criteria andProductVersionIdLessThan(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " <",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductVersionId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdLessThanOrEqualTo(long value) {
            return andProductVersionIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andProductVersionIdLessThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " <=",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductVersionId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdIn(long[] values) {
            if (values.length == 1) {
                return andProductVersionIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductVersionId + " in",
                    values, "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdNotIn(long[] values) {
            if (values.length == 1) {
                return andProductVersionIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductVersionId +
                    " not in", values, "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andProductVersionIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.ProductVersionId + " in",
                    values, "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andProductVersionIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.ProductVersionId +
                    " not in", values, "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andProductVersionIdEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductVersionId + " in",
                    Arrays.asList(values), "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andProductVersionIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductVersionId +
                    " not in", Arrays.asList(values), "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdBetween(long value1, long value2) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " between", value1, value2, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " between", value1, value2, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdNotBetween(long value1, long value2) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " not between", value1, value2, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionRelateDAO.ProductVersionId +
                " not between", value1, value2, "productVersionId");

            return this;
        }

        public Criteria andProductElementIdIsNull() {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " is null");

            return this;
        }

        public Criteria andProductElementIdIsNotNull() {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " is not null");

            return this;
        }

        public Criteria andProductElementIdIsNotEmpty() {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " is not null AND " +
                IProductVersionRelateDAO.ProductElementId + " <> ''");

            return this;
        }

        public Criteria andProductElementIdIsEmpty() {
            addCriterion("(" + IProductVersionRelateDAO.ProductElementId +
                " is null OR " + IProductVersionRelateDAO.ProductElementId +
                " = '')");

            return this;
        }

        public Criteria andProductElementIdEqualTo(long value) {
            return andProductElementIdEqualTo(Long.valueOf(value));
        }

        public Criteria andProductElementIdEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " = ",
                value, "productElementId");

            return this;
        }

        public Criteria andProductElementIdEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementIdNotEqualTo(long value) {
            return andProductElementIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andProductElementIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " <>",
                value, "productElementId");

            return this;
        }

        public Criteria andProductElementIdNotEqualToOrIsNull(long value) {
            return andProductElementIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andProductElementIdNotEqualToOrIsNull(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " is null OR " + IProductVersionRelateDAO.ProductElementId +
                " <>", value, "productElementId");

            return this;
        }

        public Criteria andProductElementIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementIdNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementIdGreaterThan(long value) {
            return andProductElementIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andProductElementIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " >",
                value, "productElementId");

            return this;
        }

        public Criteria andProductElementIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementIdGreaterThanOrEqualTo(long value) {
            return andProductElementIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andProductElementIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " >=",
                value, "productElementId");

            return this;
        }

        public Criteria andProductElementIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementIdLessThan(long value) {
            return andProductElementIdLessThan(Long.valueOf(value));
        }

        public Criteria andProductElementIdLessThan(java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " <",
                value, "productElementId");

            return this;
        }

        public Criteria andProductElementIdLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementIdLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementIdLessThanOrEqualTo(long value) {
            return andProductElementIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andProductElementIdLessThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " <=",
                value, "productElementId");

            return this;
        }

        public Criteria andProductElementIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementIdIn(long[] values) {
            if (values.length == 1) {
                return andProductElementIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementId + " in",
                    values, "productElementId");

                return this;
            }
        }

        public Criteria andProductElementIdNotIn(long[] values) {
            if (values.length == 1) {
                return andProductElementIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementId +
                    " not in", values, "productElementId");

                return this;
            }
        }

        public Criteria andProductElementIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andProductElementIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementId + " in",
                    values, "productElementId");

                return this;
            }
        }

        public Criteria andProductElementIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andProductElementIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementId +
                    " not in", values, "productElementId");

                return this;
            }
        }

        public Criteria andProductElementIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andProductElementIdEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementId + " in",
                    Arrays.asList(values), "productElementId");

                return this;
            }
        }

        public Criteria andProductElementIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andProductElementIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementId +
                    " not in", Arrays.asList(values), "productElementId");

                return this;
            }
        }

        public Criteria andProductElementIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementIdBetween(long value1, long value2) {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " between", value1, value2, "productElementId");

            return this;
        }

        public Criteria andProductElementIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " between", value1, value2, "productElementId");

            return this;
        }

        public Criteria andProductElementIdNotBetween(long value1, long value2) {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " not between", value1, value2, "productElementId");

            return this;
        }

        public Criteria andProductElementIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionRelateDAO.ProductElementId +
                " not between", value1, value2, "productElementId");

            return this;
        }

        public Criteria andProductElementTypeIsNull() {
            addCriterion(IProductVersionRelateDAO.ProductElementType +
                " is null");

            return this;
        }

        public Criteria andProductElementTypeIsNotNull() {
            addCriterion(IProductVersionRelateDAO.ProductElementType +
                " is not null");

            return this;
        }

        public Criteria andProductElementTypeIsNotEmpty() {
            addCriterion(IProductVersionRelateDAO.ProductElementType +
                " is not null AND " +
                IProductVersionRelateDAO.ProductElementType + " <> ''");

            return this;
        }

        public Criteria andProductElementTypeIsEmpty() {
            addCriterion("(" + IProductVersionRelateDAO.ProductElementType +
                " is null OR " + IProductVersionRelateDAO.ProductElementType +
                " = '')");

            return this;
        }

        public Criteria andProductElementTypeEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " = ",
                value, "productElementType");

            return this;
        }

        public Criteria andProductElementTypeEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementType);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementTypeEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementTypeNotEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " <>",
                value, "productElementType");

            return this;
        }

        public Criteria andProductElementTypeNotEqualToOrIsNull(String value) {
            addCriterion(IProductVersionRelateDAO.ProductElementType +
                " is null OR " + IProductVersionRelateDAO.ProductElementType +
                " <>", value, "productElementType");

            return this;
        }

        public Criteria andProductElementTypeNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementType);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementTypeNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementTypeGreaterThan(String value) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " >",
                value, "productElementType");

            return this;
        }

        public Criteria andProductElementTypeGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementType);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementTypeGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementTypeGreaterThanOrEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " >=",
                value, "productElementType");

            return this;
        }

        public Criteria andProductElementTypeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementType);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementTypeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementTypeLessThan(String value) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " <",
                value, "productElementType");

            return this;
        }

        public Criteria andProductElementTypeLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementType);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementTypeLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementTypeLessThanOrEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " <=",
                value, "productElementType");

            return this;
        }

        public Criteria andProductElementTypeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.ProductElementType);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductElementTypeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementTypeLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionRelateDAO.ProductElementType + " like",
                buffer.toString(), "productElementType");

            return this;
        }

        public Criteria andProductElementTypeNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionRelateDAO.ProductElementType +
                " not like", buffer.toString(), "productElementType");

            return this;
        }

        public Criteria andProductElementTypeIn(List<String> values) {
            if (values.size() == 1) {
                return andProductElementTypeEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementType +
                    " in", values, "productElementType");

                return this;
            }
        }

        public Criteria andProductElementTypeNotIn(List<String> values) {
            if (values.size() == 1) {
                return andProductElementTypeNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementType +
                    " not in", values, "productElementType");

                return this;
            }
        }

        public Criteria andProductElementTypeIn(String[] values) {
            if (values.length == 1) {
                return andProductElementTypeEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementType +
                    " in", Arrays.asList(values), "productElementType");

                return this;
            }
        }

        public Criteria andProductElementTypeNotIn(String[] values) {
            if (values.length == 1) {
                return andProductElementTypeNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.ProductElementType +
                    " not in", Arrays.asList(values), "productElementType");

                return this;
            }
        }

        public Criteria andProductElementTypeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementType + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementTypeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.ProductElementType +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andProductElementTypeBetween(String value1,
            String value2) {
            addCriterion(IProductVersionRelateDAO.ProductElementType +
                " between", value1, value2, "productElementType");

            return this;
        }

        public Criteria andProductElementTypeNotBetween(String value1,
            String value2) {
            addCriterion(IProductVersionRelateDAO.ProductElementType +
                " not between", value1, value2, "productElementType");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(IProductVersionRelateDAO.Status + " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(IProductVersionRelateDAO.Status + " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(IProductVersionRelateDAO.Status + " is not null AND " +
                IProductVersionRelateDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + IProductVersionRelateDAO.Status +
                " is null OR " + IProductVersionRelateDAO.Status + " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.Status + " = ", value,
                "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Status + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.Status + " <>", value,
                "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(IProductVersionRelateDAO.Status + " is null OR " +
                IProductVersionRelateDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Status + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(IProductVersionRelateDAO.Status + " >", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Status + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.Status + " >=", value,
                "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Status + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(IProductVersionRelateDAO.Status + " <", value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Status + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.Status + " <=", value,
                "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Status + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionRelateDAO.Status + " like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionRelateDAO.Status + " not like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.Status + " in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.Status + " not in",
                    values, "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.Status + " in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.Status + " not in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Status + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Status + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(IProductVersionRelateDAO.Status + " between", value1,
                value2, "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(IProductVersionRelateDAO.Status + " not between",
                value1, value2, "status");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(IProductVersionRelateDAO.Remarks + " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(IProductVersionRelateDAO.Remarks + " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(IProductVersionRelateDAO.Remarks +
                " is not null AND " + IProductVersionRelateDAO.Remarks +
                " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + IProductVersionRelateDAO.Remarks +
                " is null OR " + IProductVersionRelateDAO.Remarks + " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.Remarks + " = ", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Remarks + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.Remarks + " <>", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(IProductVersionRelateDAO.Remarks + " is null OR " +
                IProductVersionRelateDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Remarks + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(IProductVersionRelateDAO.Remarks + " >", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Remarks + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.Remarks + " >=", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Remarks + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(IProductVersionRelateDAO.Remarks + " <", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Remarks + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(IProductVersionRelateDAO.Remarks + " <=", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionRelateDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Remarks + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionRelateDAO.Remarks + " like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionRelateDAO.Remarks + " not like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.Remarks + " in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionRelateDAO.Remarks + " not in",
                    values, "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.Remarks + " in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionRelateDAO.Remarks + " not in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Remarks + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionRelateDAO.Remarks + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(IProductVersionRelateDAO.Remarks + " between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(IProductVersionRelateDAO.Remarks + " not between",
                value1, value2, "remarks");

            return this;
        }
    }
}
